/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.inventory.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.User;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 备件Entity
 * @author johnKee
 * @version 2016-07-28
 */
public class ZlmtAccessoryInout extends DataEntity<ZlmtAccessoryInout> {
	
	private static final long serialVersionUID = 1L;
	private String accessoryStoreId;		// 库存配件id
	private User user;		// 处理人
	private String hostid;		// 主机id
	private String inoutType;		// 入库/出库
	private String amount;		// 数量
	private String contact;		// 联系信息

	private String accessoryName;
	private String accessoryCategory;
	private String hostName;

	public ZlmtAccessoryInout() {
		super();
	}

	public ZlmtAccessoryInout(String id){
		super(id);
	}

	@Length(min=0, max=64, message="库存配件id长度必须介于 0 和 64 之间")
	public String getAccessoryStoreId() {
		return accessoryStoreId;
	}

	public void setAccessoryStoreId(String accessoryStoreId) {
		this.accessoryStoreId = accessoryStoreId;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=64, message="主机id长度必须介于 0 和 64 之间")
	public String getHostid() {
		return hostid;
	}

	public void setHostid(String hostid) {
		this.hostid = hostid;
	}
	
	@Length(min=0, max=64, message="入库/出库长度必须介于 0 和 64 之间")
	public String getInoutType() {
		return inoutType;
	}

	public void setInoutType(String inoutType) {
		this.inoutType = inoutType;
	}
	
	@Length(min=0, max=128, message="数量长度必须介于 0 和 128 之间")
	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}
	
	@Length(min=0, max=256, message="联系信息长度必须介于 0 和 256 之间")
	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getAccessoryName() {
		return accessoryName;
	}

	public void setAccessoryName(String accessoryName) {
		this.accessoryName = accessoryName;
	}

	public String getAccessoryCategory() {
		return accessoryCategory;
	}

	public void setAccessoryCategory(String accessoryCategory) {
		this.accessoryCategory = accessoryCategory;
	}

	public String getHostName() {
		return hostName;
	}

	public void setHostName(String hostName) {
		this.hostName = hostName;
	}
}